package com.ytktt.study.week7.task9.service;

import com.ytktt.study.week7.task9.entity.DemoEntity;

import java.util.List;

/**
 * demo 业务逻辑抽象
 *
 * @author ytk
 */
public interface DemoService {

    /**
     * 保存单个demo
     *
     * @param demoEntity the demo entity
     */
    void save(DemoEntity demoEntity);

    /**
     * 查询全部demo
     *
     * @return the list
     */
    List<DemoEntity> listDemo();
}
